<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        [title]{
            color: white;
            background-color: red;
        }

        [title="div2"]{
           background-color: blue;
        }
        
        div .content 
        {
            background-color: black;
        }

        div .span2 {
            background-color: red;
        }

        .content>span{
            color:white;
        }

        :hover{
            color: blue;
        }

    </style>
</head>
<body>
        <div>
            <span class="span2">
                我是第一个span
            </span>

            <div class="content">
                我是content
                <span class="span1">
                    我是content里面的span
                </span>
                <div>
                    <span style="color: white;">我是span2</span>
                </div>
              
            </div>


            
        </div>
</body>
</html>